package geekTime.chapter23Future;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * Created by LinGer on 2019/7/2
 */
public class T2Task implements Callable<String> {

    @Override
    public String call() throws Exception {
        System.out.println("T2:洗茶壶...1min");
        TimeUnit.SECONDS.sleep(1);

        System.out.println("T2:洗茶杯...2min");
        TimeUnit.SECONDS.sleep(2);

        System.out.println("T2:拿茶叶...1min");
        TimeUnit.SECONDS.sleep(1);

        return "龙井";
    }
}
